<?php
$http='https://www.gopay.com.cn/PGServer/Trans/WebClientAction.do'
?>
<!-- 国付宝提示：示例仅作参考使用，请商户仔细阅读国付宝接口文档后，针对自系统业务逻辑自行编写接口代码。 -->
<!-- 直接使用公共示例代码与商户系统整合可能会由于集成度不高导致商户业务处理缺陷。 -->      
<form action="<?php echo $http; ?>" name="returnfunc" style = 'display:none' id= "returnfunc" method="POST">
		<?php 
		
		$version = '2.1';          
		$charset = 2;          					//1:GBK,2:UTF-8 (不填则当成1处理)
		$language = 1;					    	//1:ZH,2:EN     
		$signType = 1;         					//1:MD5,2:SHA
		$tranCode = 8888;     					//交易代码
		$isRepeatSubmit = 1;   					//订单是否允许重复提交
		$feeAmt = 0;				         	//商户提取佣金金额
		$currencyType = 156; 					//币种    
		$merRemark1 = '';//$_POST["merRemark1"];       
		$merRemark2 = '';//$_POST["merRemark2"];      
		$bankCode = '';			        	//银行代码 
		$userType = 1;         					//用户类型
		
		
		
		//$merchantID = 0000003358;       		//商户代码
		//注意调试生产环境时需要修改这个值为生产参数
		
		//$merOrderNum = 'guoguofufu001';			//订单号    
		//$tranAmt = $tranAmt;		    			//交易金额      
		//$frontMerUrl = $frontMerUrl;   			//商户前台通知地址
		//$backgroundMerUrl = $backgroundMerUrl; 	//商户后台通知地址
		//$tranDateTime = $_POST["tranDateTime"]; 	//交易时间    
		//$virCardNoIn = $virCardNoIn;		  		//国付宝转入账户  
		//注意调试生产环境时需要修改这个值为生产参数
		  
		//$tranIP = $_POST["tranIP"];           				//用户浏览器IP
		//$goodsName = $_POST["goodsName"];        			//商品名称
		//$goodsDetail = $_POST["goodsDetail"];      			//商品详情
		//$buyerName = $_POST["buyerName"];        			//买方姓名
		//$buyerContact = $_POST["buyerContact"]; 			//买方联系方式    

   		$signStr='version=['.$version.']tranCode=['.$tranCode.']merchantID=['.$merchantID.']merOrderNum=['.$merOrderNum.']tranAmt=['.$tranAmt.']feeAmt=['.$feeAmt.']tranDateTime=['.$tranDateTime.']frontMerUrl=['.$frontMerUrl.']backgroundMerUrl=['.$backgroundMerUrl.']orderId=[]gopayOutOrderId=[]tranIP=['.$tranIP.']respCode=[]gopayServerTime=['.$gopayServerTime.']VerficationCode=['.$verficationCode.']';
   //VerficationCode是商户识别码为用户重要信息请妥善保存
	//注意调试生产环境时需要修改这个值为生产参数,此域仅作为加密串运算明文中参与计算使用，禁止作为参数域上送国付宝
    
    
		$signValue = md5($signStr);
		
		//echo 'md5明文串;'; 
		//echo "$signStr"; 
		?>
		
		<input type="hidden" id="version" name="version" value="<?php echo $version; ?>" size="50"/>
		<input type="hidden" id="charset" name="charset" value="<?php echo $charset; ?>"  size="50"/>
		<input type="hidden" id="language" name="language" value="<?php echo $language; ?>"  size="50"/>
		<input type="hidden" id="signType" name="signType" value="<?php echo $signType; ?>"  size="50"/>
		<input type="hidden" id="tranCode" name="tranCode" value="<?php echo $tranCode; ?>"  size="50"/>
		<input type="hidden" id="merchantID" name="merchantID" value="<?php echo $merchantID; ?>"  size="50"/>
		<input type="hidden" id="merOrderNum" name="merOrderNum" value="<?php echo $merOrderNum; ?>"  size="50" />
		<input type="hidden" id="tranAmt" name="tranAmt" value="<?php echo $tranAmt; ?>"  size="50"/>
		<input type="hidden" id="feeAmt" name="feeAmt" value="<?php echo $feeAmt; ?>"  size="50"/>
		<input type="hidden" id="currencyType" name="currencyType" value="<?php echo $currencyType; ?>"  size="50"/>
		<input type="hidden"  id="frontMerUrl" name="frontMerUrl" value="<?php echo $frontMerUrl; ?>"  size="50"/>
		<input type="hidden"  id="backgroundMerUrl" name="backgroundMerUrl" value="<?php echo $backgroundMerUrl; ?>"  size="50"/>
		<input type="hidden"  id="tranDateTime" name="tranDateTime" value="<?php echo $tranDateTime; ?>"  size="50"/>
		<input type="hidden"  id="virCardNoIn" name="virCardNoIn" value="<?php echo $virCardNoIn; ?>"  size="50"/>
		<input type="hidden"  id="tranIP" name="tranIP" value="<?php echo $tranIP; ?>"  size="50"/>
		<input type="hidden"  id="isRepeatSubmit" name="isRepeatSubmit" value="<?php echo $isRepeatSubmit; ?>"  size="50"/>
		<input type="hidden"  id="goodsName" name="goodsName" value="<?php echo $goodsName; ?>"  size="50"/>
		<input type="hidden"  id="goodsDetail" name="goodsDetail" value="<?php echo $goodsDetail; ?>"  size="50"/>
		<input type="hidden"  id="buyerName" name="buyerName" value="<?php echo $buyerName; ?>"  size="50"/>
		<input type="hidden"  id="buyerContact" name="buyerContact" value="<?php echo $buyerContact; ?>"  size="50"/>
		<input type="hidden"  id="merRemark1" name="merRemark1" value="<?php echo $merRemark1; ?>"  size="50"/>
		<input type="hidden"  id="merRemark2" name="merRemark2" value="<?php echo $merRemark2; ?>"  size="50"/>
		<input type="hidden"  id="signValue" name="signValue" value="<?php echo $signValue; ?>"  size="50"/>
		<input type="hidden"  id="bankCode" name="bankCode" value="<?php echo $bankCode; ?>"  size="50"/>
		<input type="hidden"  id="userType" name="userType" value="<?php echo $userType; ?>"  size="50"/>
		<input type="hidden"  id="gopayServerTime" name="gopayServerTime" value="<?php echo $gopayServerTime; ?>"  size="50"/>
	
		<input type="submit" name="submit" id="submit_pay_order" value="开始测试"/>
</form>
<script>$('#submit_pay_order').click()</script>





